home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 6 / FM Towns Free Software Collection 6.iso / ms_dos / gds / source / gds206.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-07-08  |  469 b   |  23 lines

  1.  
  2. /*
  3.  *
  4.  *    GDS206 : ペイント
  5.  *
  6.  */
  7.  
  8. #include <stdio.h>
  9. #include <dos.h>
  10.  
  11. unsigned char *GDS_append(unsigned char *wp,unsigned int size);
  12.  
  13. void GDS_paint(unsigned char *wp,signed int x1,signed int y1,unsigned int color) {
  14.  
  15.    wp=GDS_append(wp,12);
  16.    *(unsigned int *)(wp+0)=0x4000+10*32+10;
  17.    *(unsigned int *)(wp+2)=5;
  18.    *(signed int *)(wp+4)=x1;
  19.    *(signed int *)(wp+6)=y1;
  20.    *(unsigned int *)(wp+8)=1;
  21.    *(unsigned int *)(wp+10)=color;
  22. }
  23.